package com.twu.biblioteca;

import com.twu.biblioteca.domain.Library;
import com.twu.biblioteca.factories.LibraryFactory;
import com.twu.biblioteca.repositories.IUserRepository;
import com.twu.biblioteca.repositories.LibraryUserRepository;
import com.twu.biblioteca.services.ILibraryIOService;
import com.twu.biblioteca.services.LibraryIOService;
import com.twu.biblioteca.services.LibraryService;

public class BibliotecaApp {

    public static void main(String[] args) {

        Library library = LibraryFactory.create();
        ILibraryIOService libraryIOService = new LibraryIOService();
        IUserRepository userRepository = new LibraryUserRepository();

        LibraryService libraryService = new LibraryService(library, libraryIOService, userRepository);

        libraryService.run();
    }
}
